package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Sign;
import cn.wolfcode.crm.query.ObjectQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SignMapper {

    void insert(Sign record);

    Sign selectByPrimaryKey(Long id);

    List<Sign> selectAll();

    void updateByPrimaryKey(Sign record);

    int queryForCount(ObjectQuery qo);

    List<Sign> queryForList(ObjectQuery qo);


    void changStateIn(Long id);


    void changStateOut(Sign record );

    Sign getSignByInDate(@Param("id") Long id, @Param("date") Date endDate);

    // void selectBySign(Long id);

}